package evolutionaryLoop.selectionProtocol;

import evolutionaryLoop.EvolutionaryParameters;
import evolutionaryLoop.Population;

public class FullGenerationReplacement extends SelectionProtocol{

	public FullGenerationReplacement(EvolutionaryParameters parameters) {
		super(parameters);
	}

	@Override
	public Population selection(Population children, Population parents) {
		if (children.size() != getPopulationSize()) {
			System.out.println("The number of children are wrong, the children are returned. (MixingProtocol - FullGenerationReplacement)"); 
		}
		return children;
	}
	
	public String toString(){
		return "Full generation replacement"; 
	}

}
